package com.qf.cloud2202.microa.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/")
    public String home(){
        return "welcome to microA";
    }


    @GetMapping("/test1")
    public String test1(){

        return "hello from microa !!!!"+port;

    }
}
